/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

char a[1000010] = { 0 };
void prime(int n)
{
	
	int i,j;
	
	for (i = 2; i < 1000010; i++)
	{
		if (a[i] == 0)
		{
			for (j = 2; j * i < 1000010; j++)
				a[j * i] = 1;
		}
	}
	
}
int main()
{
	int n;
	while (scanf("%d", &n) != EOF)
	{
		int i;
		prime(n);
		int flag = 0;
		for (i = 2; i < n; i++)
		{

			if (a[i] == 0 && n % i == 0)
				if (a[n / i] == 0)
				{
					flag = 1;
					break;
				}
		}
		if (flag == 1)
		{
			printf("Yes\n");
		}
		else
			printf("No\n");
	}
	return 0;
}*/